measure marketing channel in python